package platformmanager

import (
	"iot-base/auth/api/logic/platformmanager/protocol"
	"iot-base/auth/model"
)

var ProtocolMap map[string]Protocol

type Protocol interface {
	RegisterData(ID int64, style, mode string) //@style 5minte,hour,real @mode air,dev
	UnRegisterData(ID int64, style, mode string)
	SendReData(data []model.ReData) error //将发送失败的数据发送至平台
}

func init() {
	ProtocolMap = map[string]Protocol{
		"国家监控平台": protocol.NewCountryProtocol(),
	}
}
